//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Diagnostics.Contracts;
using OpenLS.Core.Serialization;

namespace OpenLS.Vml.Serialization  
{
    public class VmlReadContext: IDisposable
    {
        private readonly ReadContext _context;

        public VmlReadContext(ReadContext context)
        {
            Contract.Requires(context != null);
            _context = context;
            res = new ShapeTypeResolver();
            _context.AddData(typeof (ShapeTypeResolver), res);
        }

        private ShapeTypeResolver res;

        public void Dispose()
        {
            res.Resolve();
        }
    }
}